{% extends "forum/frame.html" %}
{% load i18n %} 

{% block content %}

  <div id="forum_nav">
  <a class="forum_link" href="{% url ytcommunity.forum.view.board.list %}">{% trans 'Homepage' %}</a>
  
  {% for board in post.ref.get_board_path %}
  - <a class="forum_link" href="{% url ytcommunity.forum.view.board.display name=post.ref.get_board_key %}">{{ post.ref.title|escape }}</a>
  {% endfor %}
  
  - <a class="forum_link" href="{% url ytcommunity.forum.view.post.display post.key.id %}">{{ post.title|escape }}</a>
  </div>


<form action="{% url ytcommunity.forum.view.post.edit post.key.id %}" method="POST">
    <div class="fieldWrapper">
        {{ form.title.errors }}
        <label for="id_title">{% trans 'Title' %}:</label><br>
        {{ form.title }}
    </div>
    <div class="fieldWrapper">
        {{ form.content.errors }}
        <label for="id_content">{% trans 'Content' %}:</label><br>
        {{ form.content }}
    </div>
    <p><input type="submit" class="button" value="{% trans 'Submit' %}" /></p>
</form>

{% endblock %}
